package com.nvwa.stater.logback.trace;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyTraceFilterConfig {
    @Bean
    public FilterRegistrationBean<MyTraceFilter> traceFilterRegistration() {
        FilterRegistrationBean<MyTraceFilter> registrationBean = new FilterRegistrationBean<>();
        registrationBean.setFilter(new MyTraceFilter());
        registrationBean.addUrlPatterns("/*");
        return registrationBean;
    }
}